package cn.wizzer.app.crown.modules.models.enums;

import java.util.Optional;

/**
 * order状态：待确认、待结算、已结算、已取消、重新结算
 * orderDetail状态：待确认、待结算、已取消、全赢、全输、半赢、半输、走水
 */
public enum SettleStatusEnum {
    // 订单、订单详情状态
    WAIT_CONFIRM("待确认", 1),
    WAIT_SETTLE("待结算", 2),
    RESETTLED("重新结算", 3),
    SETTLED("已结算", 4),
    CANCELLED("已取消", 5),
    // 订单状态与winStatus应该是两个字段相关状态声明在两个Enum中
    FULL_WIN("全赢", 5),
    FULL_LOSE("全输", -5),
    HALF_WIN("半赢", 6),
    HALF_LOSE("半输", -6),
    GO_WATER("走水", 0),
    ;

    final public String NAME;
    final public int VALUE;

    SettleStatusEnum(String name, int value) {
        NAME = name;
        VALUE = value;
    }

    public String getName() {
        return NAME;
    }

    public int getValue() {
        return VALUE;
    }
}
